package com.djinfo.work.entity;
// Generated 2016-5-11 11:24:26 by Hibernate Tools 5.1.0.Alpha1

import javax.persistence.*;

/**
 * 2.5.3.1 文件记录表
 * 
 * @author wxf
 *
 */
@Entity
@Table(name = "tb_dic_files")
public class TbDicFiles implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 31072325822791448L;
	private Integer pkFileId;// 文件ID
	private String fileName; // 文件名称
	private String fileDesc;// 文件描述
	private String fileTypeIds;// 分类id
	private String filePath; // 文件存放路径
	private String fileNumber; //
	private String fileLabels; //
	private Integer fileVersion; //
	private String modifyReason; //
	private Integer referFileVersion; //

	


	public TbDicFiles() {
	}

	public TbDicFiles(String fileName, String filePath) {
		this.fileName = fileName;
		this.filePath = filePath;
	}

	/**
	 * @param fileName
	 * @param filePath
	 * @param fileDesc
	 * @param fileTypeIds
	 */
	public TbDicFiles(String fileName, String filePath,String fileDesc,String fileTypeIds) {
		this.fileName = fileName;
		this.filePath = filePath;
		this.fileDesc = fileDesc;
		this.fileTypeIds = fileTypeIds;
	}


	public TbDicFiles(Integer pkFileId, String fileName, String fileDesc, String fileTypeIds, String filePath,
			String fileNumber, String fileLabels, Integer fileVersion, String modifyReason, Integer referFileVersion) {
		super();
		this.pkFileId = pkFileId;
		this.fileName = fileName;
		this.fileDesc = fileDesc;
		this.fileTypeIds = fileTypeIds;
		this.filePath = filePath;
		this.fileNumber = fileNumber;
		this.fileLabels = fileLabels;
		this.fileVersion = fileVersion;
		this.modifyReason = modifyReason;
		this.referFileVersion = referFileVersion;
	}

	@Id
	@Column(name = "PK_FileID", unique = true, nullable = false)
	@TableGenerator(name = "tb_TABLE_id", // 此处的名字要和下面绿色标注的对应
			table = "tb_generator_seq", // 主键保存到数据库的表名
			pkColumnName = "gen_name", // 表里用来保存主键名字的字段
			valueColumnName = "gen_value", // 表里用来保存主键值的字段
			pkColumnValue = "TbDicFiles", // 表里名字字段对应的值
			allocationSize = 1) // 自动增长，设置为1
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "tb_TABLE_id")
	public Integer getPkFileId() {
		return this.pkFileId;
	}

	public void setPkFileId(Integer pkFileId) {
		this.pkFileId = pkFileId;
	}

	@Column(name = "FileName", nullable = false)
	public String getFileName() {
		return this.fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	@Column(name = "FileDesc", nullable = true)
	public String getFileDesc() {
		return fileDesc;
	}

	public void setFileDesc(String fileDesc) {
		this.fileDesc = fileDesc;
	}
	@Column(name = "FileTypeIds", nullable = true)
	public String getFileTypeIds() {
		return fileTypeIds;
	}

	public void setFileTypeIds(String fileTypeIds) {
		this.fileTypeIds = fileTypeIds;
	}
	@Column(name = "FilePath", nullable = false, length = 1000)
	public String getFilePath() {
		return this.filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}



////////////////////////

	@Column(name = "FileNumber")
	public String getFileNumber() {
		return fileNumber;
	}

	public void setFileNumber(String fileNumber) {
		this.fileNumber = fileNumber;
	}

	@Column(name = "FileLabels")
	public String getFileLabels() {
		return fileLabels;
	}

	public void setFileLabels(String fileLabels) {
		this.fileLabels = fileLabels;
	}

	@Column(name = "FileVersion")
	public Integer getFileVersion() {
		return fileVersion;
	}

	public void setFileVersion(Integer fileVersion) {
		this.fileVersion = fileVersion;
	}

	@Column(name = "ModifyReason")
	public String getModifyReason() {
		return modifyReason;
	}

	public void setModifyReason(String modifyReason) {
		this.modifyReason = modifyReason;
	}

	@Column(name = "ReferFileVersion")
	public Integer getReferFileVersion() {
		return referFileVersion;
	}

	public void setReferFileVersion(Integer referFileVersion) {
		this.referFileVersion = referFileVersion;
	}
	



}
